package com.dnw.shyfunny;

import android.widget.TextView;

import com.dnw.base.BaseActivity;
import com.dnw.base.BasePresenter;
import com.dnw.util.AppUtil;
import com.dnw.util.UIUtils;

import butterknife.Bind;
import butterknife.OnClick;
import flyn.Eyes;

/**
 * Created by yangyu on 2017/11/16.
 * 关于页面
 */

public class AboutActivity extends BaseActivity {

    @Bind(R.id.tv_back)
    TextView tvBack;

    @Bind(R.id.tv_version)
    TextView tvVersion;

    @Bind(R.id.tv_author)
    TextView tvAuthor;

    @Override
    public void initView() {
        Eyes.setStatusBarColor(this, UIUtils.getColor(R.color.a));
    }

    @Override
    public void initData() {
        tvAuthor.setText(getResources().getString(R.string.side_column_about));
        tvVersion.setText("V" + AppUtil.getVersionName(this));
    }

    @Override
    protected BasePresenter createPresenter() {
        return null;
    }

    @Override
    protected int provideContentViewId() {
        return R.layout.activity_about;
    }

    @OnClick(R.id.tv_back)
    public void onViewClicked() {
        finish();
    }
}
